* {
	margin: 0;
	padding: 0;
}
body {
	box-sizing: border-box;
	padding: 3px;
	width: 468px;
	font: 13px/16px Helvetica, Arial, sans-serif;
	height: 531px;
}

.header {
	position: relative;
	padding: 9px 0 11px 45px;
	border-bottom: 1px solid #B6DAFD;
	text-shadow: 1px 1px 1px rgba(255,255,255,.7);
	font-size: 18px;
}
#options {
	position: absolute;
	top: 7px;
	left: 5px;
	width: 20px;
	height: 20px;	
	background: url();
	cursor: pointer;
	opacity: 0.4;
}
#options:hover {
	opacity: 1;
}
/*
删除框的边框
*/
.actions {
	position: relative;
	height: 28px;
	border-top: 1px solid #1E90FF;
	border-left: 2px solid #1E90FF;
	border-right: 2px solid #1E90FF;
	border-bottom: 1px solid #1E90FF
}
.check-all {
	float: left;
	margin: 7px 0 0 7px;
}
.del-completed {
	float: right;
	margin: 9px 5px 0;
	padding: 0;
	border-bottom: 1px dotted #CCC;
	border-radius: 2px;
	color: #999;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
}
.del-completed:hover {
	margin: 6px 0 0;
	padding: 0 5px 1px;
	border: none;
	background: #F37061;
	color: #FFF;
	text-decoration: none;
	line-height: inherit;
}

ul {
	max-height: 400px;
	padding: 0 0 25px;
	overflow-x: hidden;
}
/*
.header:before,
.actions:before,
li:before,
*/
.actions:before,
li:before {
	position: absolute;
	top: 0;
	left: 29px;
	z-index: 10;
	width: 3px;
	height: 100%;
	border: 1px solid #BCEE68;
	border-width: 0 1px;
	content: '';
}
.add:before {
	top: 0;
	height: 25px;
}

li {
	position: relative;
	padding: 6px 50px 7px 45px;
    
	border-top: 1px solid #1E90FF;
	border-bottom: 1px solid #1E90FF;
	border-right: 2px solid #1E90FF;
	border-left: 2px solid #1E90FF;
	/*
	设置无序表的边框
	
	border:1px solid #B8DAFC;
	*/
	margin-top: -1px;
	list-style: none;
}

li:hover {
	background: #F4FAFF;
}
li.placeholder {
	background: #EBF3FE;
}
.completed {
	color: #BBB;
	text-decoration: line-through;
}
.completed.remove {
	-webkit-animation: shrinkHeight 0.5s ease forwards;
}
@-webkit-keyframes shrinkHeight {
	to {
		opacity: 0;
		height: 0;
		padding: 0;
		margin: 0;
		border: none;
		-webkit-transform: scale(0);
	}
}
.new {
	position: relative;
	z-index: 99;
	background: #B6DAFD;
	opacity: 0;
	-webkit-transform: scale(0);
	-webkit-animation: growHeight 0.3s ease forwards, bgWhite 1.5s ease forwards;
}
@-webkit-keyframes growHeight {
	to {
		opacity: 1;
		-webkit-transform: scale(1);
	}
}
@-webkit-keyframes bgWhite {
	to {
		background: #FFF;
	}
}

.checkbox {
	width: 13px;
	height: 13px;
	border: 1px solid #D5D6DD;
	border-radius: 2px;
	background: #FFF;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,.06);
	cursor: pointer;
}
.checkbox:hover {
	border: 1px solid #ABADBA;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,.12);
}
ul .checkbox {
	position: absolute;
	top: 7px;
	left: 7px;
}
.checkbox.checked,
.completed .checkbox {
	background: #FFF url() no-repeat 2px 1px;
}
.task {
	outline: none;
	word-wrap: break-word;
}

textarea {
	display: block;
	width: 100%;
	margin: -4px -6px -5px;
	padding: 3px 5px 2px;
	border: 1px solid #ABADBA;
	border-radius: 2px;
	background: #FFF;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,.12);
	outline: none;
	font: inherit;
	overflow: hidden;
	resize: none;
}
.editable {
	display: none;
}
.task a {
	color: #61AAF3;
}
.task a:hover {
	color: #F37061;
}
.priority1 .task {
	color: #F04B39;
	font-weight: bold;
}
.priority2 .task {
	color: #FFA600;
	font-weight: bold;
}
.priority3 .task {
	color: #75BE2C;
	font-weight: bold;
}
.edit,
.action,
.save {
	position: absolute;
	top: 6px;
	display: none;
	width: 16px;
	height: 16px;
	opacity: 0.4;
	cursor: pointer;
}
.edit {
	top: 5px;
	right: 25px;
	background: url();
}
.action {
	right: 3px;
}
.action:before {
	content: '...';
	position: absolute;
	top: -5px;
	left: -1px;
	font-size: 20px;
	font-weight: bold;
	color: #000;
}
.save {
	right: 13px;
	background: url();
}
li:hover .action,
li:hover .edit {
	display: block;
}
.edit:hover,
.action:hover,
.save:hover {
	opacity: 1;
}
.edit:hover {
	background: url();
}
.action:hover:before {
	color: #F37061;
}
.save:hover {
	background: url();
}
.drag {
	display: none;
	position: absolute;
	top: 0;
	left: 26px;
	z-index: 10;
	box-sizing: border-box;
	width: 13px;
	height: 29px;
	border: 1px solid #F4FAFF;
	border-width: 6px 1px 7px;
	background: #D6EAFE;
	cursor: -webkit-grab !important;
}
.drag:before {
	content: '';
	position: absolute;
	top: 0;
	left: 4px;
	width: 3px;
	height: 100%;
	background: #F4FAFF;
}
.drag:after {
	content: '';
	position: absolute;
	top: 4px;
	left: 0;
	width: 100%;
	height: 4px;
	border-top: 2px solid #F4FAFF;
	border-bottom: 2px solid #F4FAFF;
}
.drag:hover,
.drag:active {
	background: #F44E35;
}
.drag:active {
	cursor: -webkit-grabbing !important;
}
li:hover .drag {
	display: block;
}
li.completed:hover .drag {
	display: none;
}
.menu {
	display: none;
	position: absolute;
	top: 24px;
	right: 3px;
	z-index: 100;
	height: 25px;
	background: #FFF;
	padding: 1px;
	border: 1px solid #F37061;
	border-radius: 2px;
	box-shadow: 0 0 2px rgba(0,0,0,.3);
	cursor: default;
	line-height: 24px;
}
.delete {
	float: left;
	height: 25px;
	padding: 0 9px;
	color: #61AAF3;
	text-decoration: underline;
	cursor: pointer;
	position: relative;
}
.delete:before {
	content: '';
	position: absolute;
	top: -1px;
	left: -2px;
	width: 1px;
	height: 27px;
	background: #F37061;
}
.delete:hover {
	background: #F37061;
	color: #FFF;
	text-decoration: none;
}
.priority {
	float: left;
	margin: 0 9px;
	color: #000;
}
.pr {
	float: left;
	width: 18px;
	height: 17px;
	border: 1px solid #FFF;
	margin: 3px 4px 0 0;
	cursor: pointer;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
	line-height: 17px;
	color: #FFF;
}
.pr[data-index="1"] {
	background: #F04B39;
}
.pr[data-index="2"] {
	background: #FFA600;
}
.pr[data-index="3"] {
	background: #75BE2C;
}
.pr[data-index="0"] {
	margin-right: 12px;
	background: #AAA;
}
.pr.active {
	outline: 1px solid #777;
}

.add {
	padding: 15px 0 0;
	position: relative;
	display: -webkit-flex;
}
.add:after {
	display: table;
	clear: both;
	content: '';
}
#new-task {
	-webkit-flex: auto;
	margin: 0;
	width: auto;
	height: 21px;
	padding: 5px 7px 0;
	outline: none;
	overflow: hidden;
	resize: none;
	border: 1px solid #D5D6DD;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,.06);
	font-family: inherit;
	line-height: 16px;
	transition: border 0.3s ease, box-shadow 0.3s ease;
}
#new-task:hover,
#new-task:focus {
	border-color: #ABADBA;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,.12);
}
#new-task:not([data-changed]):before {
	content: attr(data-placeholder);
	position: absolute;
	top: 11px;
	left: 7px;
	color: #A9A9A9;
}
#submit {
	margin: 0 -1px 0 5px;
	padding: 0 10px;
	height: 26px;
	border: 1px solid #CCC;
	border-bottom-color: #AAA;
	border-radius: 2px;
	background: linear-gradient(to bottom, #FFF, #E0E0E0);
	background-color: #EDEDED;
	box-shadow: inset 0 0 1px #FFF;
	color: #555;
	text-align: center;
	text-shadow: 0 1px rgba(255,255,255,.8);
	font-weight: bold;
	line-height: 26px;
	cursor: pointer;
}
#submit:hover {
	border-color: #999;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 0 3px #FFF;
	color: #000;
}
#submit:active {
	border-color: #999 #AAA #CCC;
	background: linear-gradient(to bottom, #E6E6E6, #DCDCDC);
	background-color: #DCDCDC;
	box-shadow: inset 0 1px 2px #AAA;
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
	background: #E9E9E9;
}
::-webkit-scrollbar:hover {
	background: #DDD;
}
::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,.2);
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,.35);
}
